package com.homwee.factory;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.RelativeLayout;

public class FactoryChannelInitActivity extends Activity implements
OnClickListener {
RelativeLayout rootView;

protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.factory_channel_list);
initView();

}

public void initView() {
rootView = (RelativeLayout)findViewById(R.id.factory_channel_listview);
rootView.bringToFront();
Button okButton = (Button)findViewById(R.id.FactoryChannelListOkButton);
okButton.requestFocus();
Button cancelButton = (Button)findViewById(R.id.FactoryChannelListCancelButton);
cancelButton.setOnClickListener(this);
okButton.setOnClickListener(this);
}

public void onClick(View view) {
switch (view.getId()) {
case R.id.FactoryChannelListOkButton:
	FactoryActivity.initChannelTable();
	this.finish();
	break;
case R.id.FactoryChannelListCancelButton:
	this.finish();
	break;
}
}

}